import { SceneBase } from "../../core/module/scene/SceneBase";
import { Socket } from "../../core/module/socket/BaseTypes";
import { app } from "../app/App";
import { GameProxy } from "../proxy/GameProxy";

export class GameScene extends SceneBase {
    onEnter(...args: any[]) {
        super.onEnter(...args)
        app.ui.closeAll()
        // 可通过kindId判断游戏类型 打开对应的游戏界面
        app.ui.show(GameProxy)
    }

    onExit(): void {
        super.onExit()
    }
    private _onServerClose(reason: Socket.Reason) {
        if (reason != Socket.Reason.FORCE) {
            app.toast.showTips("连接服务器失败，请检查网络连接或服务器状态")
        }
    }

}